#include<stdio.h>
#include<stdbool.h>
int main()
{
    /* 1+2+3+4+5+...10000*/
    int totalSum = 0;
    int idx = 0;
    while (true)
    {
        totalSum = totalSum +idx;
        idx = idx + 2;
        if(idx > 1000)
        {
            /*tuichuxvhuan*/
            break;
        }

        
    }
    printf("totalSum:%d\n",totalSum);
}